API Help
Eplan.EplApi.DataModel Namespace / MergedConnection Class / Create Method / Create(Connection[]) Method

In This Topic
    Create(Connection[]) Method
    In This Topic
    Initializes the MergedConnection object to cover the connections passed in the array parameter. If the connections cannot be merged together into one merged connection an exception is thrown. connections, generally, cannot be merged together if they belong to different devices or they are of different categories. To be merged, they have to represent the same connectional part of the device.
    Syntax
    public void Create( 
       Connection[] connections
    )
    public:
    void Create( 
       array<Connection^>^ connections
    ) 

    Parameters

    connections
    Exceptions
    ExceptionDescription
    Thrown when connections is null, emty.
    Thrown when some connection is not valid.
    Thrown when the connections can not be merged.
    Thrown when the merged connection has already been created.
    Remarks
    Only complete connections with specific placement types can be merged. Placement types of mergable connections are returned by DocumentTypeManager.GetFctDocTypesToMergeConnection() method
    See Also